
<% if (cookies.get("token") && cookies.get("admin") === 'true') { %>
  <li>
    <a>
      <span id="notification-button"/>
    </a>
  </li>
  <% } %>
<li>
  <a href="/docs.html">
    <span>
      <i class="fa fa-question-circle-o" style="font-size: 16px"></i>
    </span>
  </a>
</li>
<% if (cookies.get("token")) { %>
  <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      <!-- img src="" class="user-image" alt="User Image" -->
      <span class="hidden-xs">Welcome, <%= cookies.get("user") %></span>
    </a>
    <ul class="dropdown-menu">
<% if (window.ENV.authnMethod !== 'OIDC') { %>
      <li><a href="#" onclick="window.location.replace('/change-password.html')">Change password</a></li>
<% } %>
      <li><a href="#" onclick="showUserToken()">View token</a></li>
      <li><a href="#" onclick="userLogout('/home.html')">Logout</a></li>
    </ul>
  </li>
<% } else { %>
  <li>
    <a href="#" data-toggle="control-sidebar" onclick="window.location.replace('/login.html')">
      <i class="fa fa-sign-in"></i>
      <span>Login</span>
    </a>
  </li>
<% } %>
